<template>
	<div class="page-container">
		<el-pagination
			@size-change="handleSizeChange"
			@current-change="handleCurrentChange"
			:current-page="currentPage"
			:page-sizes="[100, 200, 300, 400]"
			:page-size="100"
			layout="total, sizes, prev, pager, next, jumper"
			:total="400"
		>
		</el-pagination>
	</div>
</template>

<script>
export default {
	data() {
		return {
			currentPage: 1,
		};
	},
	methods: {
		handleSizeChange(val) {
			console.log(`每页 ${val} 条`);
		},
		handleCurrentChange(val) {
			console.log(`当前页: ${val}`);
			// this.currentPage = val;
		},
	},
};
</script>

<style lang="less" scoped>
.page-container {
	display: flex;
	justify-content: flex-end;
	padding-top: 10px;
	flex-basis: 42px;
	box-sizing: border-box;
}
</style>
